<?php $this->beginContent('/layouts/main'); ?>
	<div id="sidebar">
<?php 
$this->beginWidget('zii.widgets.CPortlet', array(
				'title'=>'Menu',
			));
		$this->menu=array(
			
			array('url'=>array('/admin/cpanel'), 'label'=>Yii::app()->getModule('admin')->t("Manage User"), 'visible'=>AdminModule::isAdmin()),
			array('url'=>array('/admin/profile/edit'), 'label'=>Yii::app()->getModule('admin')->t("Edit Profile"), 'visible'=>!Yii::app()->user->isGuest),
			array('url'=>array('/admin/propertyVacationTypes'), 'label'=>Yii::app()->getModule('admin')->t("Vacation Type Management"), 'visible'=>!Yii::app()->user->isGuest),
			array('url'=>array('/admin/propertyAmenities'), 'label'=>Yii::app()->getModule('admin')->t("Amenities Management"), 'visible'=>!Yii::app()->user->isGuest),
			array('url'=>array('/admin/propertyTypes'), 'label'=>Yii::app()->getModule('admin')->t("Property Types Management"), 'visible'=>!Yii::app()->user->isGuest),
			array('url'=>array('/admin/location'), 'label'=>Yii::app()->getModule('admin')->t("Location Management"), 'visible'=>!Yii::app()->user->isGuest),
			array('url'=>array('/admin/propertyManagement'), 'label'=>Yii::app()->getModule('admin')->t("Property Management"), 'visible'=>!Yii::app()->user->isGuest),
			array('url'=>array('/admin/report'), 'label'=>Yii::app()->getModule('admin')->t("Report Management"), 'visible'=>!Yii::app()->user->isGuest),
			//array('url'=>Yii::app()->createUrl("/admin/propertyvacationtypes/index"), 'label'=>Yii::app()->getModule('admin')->t("Vacation Type"), 'visible'=>!Yii::app()->user->isGuest),
			array('url'=>array('/admin/profile/changepassword'), 'label'=>Yii::app()->getModule('admin')->t("Change Password"), 'visible'=>!Yii::app()->user->isGuest),
			
			array('url'=>Yii::app()->getModule('admin')->logoutUrl, 'label'=>Yii::app()->getModule('admin')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
			);			
			$this->widget('zii.widgets.CMenu', array(
				'items'=>$this->menu,
				'htmlOptions'=>array('class'=>'operations'),
			));
			$this->endWidget();	
?>
</div>
			<?php echo $content; ?>
<?php $this->endContent(); ?>